package com.maiji.cloud.service;

import com.baomidou.mybatisplus.service.IService;
import com.maiji.cloud.entities.community.ComMsgCollect;
import com.maiji.cloud.request.BaseInputDto;
import com.maiji.cloud.request.IdInputDto;
import com.maiji.cloud.response.BaseOutPutDto;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

public interface ComMsgCollectService extends IService<ComMsgCollect> {


    /**
     * 动态收藏
     * @param inputDto
     * @param maijiToken
     * @return
     */
    public BaseOutPutDto<String> collect(@RequestBody BaseInputDto<IdInputDto> inputDto , @RequestHeader("maijiToken")String maijiToken);

    /**
     * 取消动态收藏
     * @param inputDto
     * @param maijiToken
     * @return
     */

    public BaseOutPutDto<String> cancelCollect(@RequestBody BaseInputDto<IdInputDto> inputDto ,@RequestHeader("maijiToken")String maijiToken);

    /**
     * 获取用户收藏的社区IDs
     * @param userId
     * @return
     */
    public List<String> getUserCollectIds(String userId, Integer pageNo, Integer size);


    /**
     * 批量删除用户收藏动态（空参为清空收藏）
     * @param inputDto
     * @param maijiToken
     * @return
     */
    public BaseOutPutDto cancelCollectionMsgs(BaseInputDto<List<String>> inputDto,String maijiToken);

}
